//@author A0083934X

package Main;


public class DataForRedo {
	private Item item;
	private Item itemUold;
	private Item itemUnew;
	private String type;
	private int index;
	private String name;
	private String nameold;
	private String namenew;
	
	public DataForRedo(Item i, String t){
		item=i;
		type=t;
	}
	
	public DataForRedo (String n, String t){
		name = n;
		type = t;
	}
	
	public DataForRedo (String oldn, String newn, String t){
		nameold = oldn;
		namenew = newn;
		type = t;
	}
	
	public DataForRedo (Item i, String t, int ind){
		item = i;
		type = t;
		index = ind;
	}
	
	public DataForRedo(Item old, Item _new, String t){
		itemUold=old;
		itemUnew=_new;
		type=t;
	}
	
	public void setIndex(int ind){
		index = ind;
	}
	
	public int getIndex(){
		return index;
	}
	
	public String getName(){
		return name;
	}
	
	public Item getItem(){
		return this.item;
	}
	
	public Item getItemUold(){
		return this.itemUold;
	}
	
	public Item getItemUnew(){
		return this.itemUnew;
	}
	
	public String getType(){
		return type;
	}
	
	public String getNameNew(){
		return namenew;
	}
	
	public String getNameOld(){
		return nameold;
	}
	
	public void setItem(Item i){
		item=i;
	}
	
	public void setItemUold(Item i){
		itemUold=i;
	}
	
	public void setItemUnew(Item i){
		itemUnew=i;
	}
	public void setType(String t){
		type=t;
	}
}
